sync.RWMutex.readerCount (field)
9 uses
sync (current package)
rwmutex.go#L43: readerCount atomic.Int32 // number of pending readers
rwmutex.go#L72: if rw.readerCount.Add(1) < 0 {
rwmutex.go#L93: c := rw.readerCount.Load()
rwmutex.go#L100: if rw.readerCount.CompareAndSwap(c, c+1) {
rwmutex.go#L120: if r := rw.readerCount.Add(-1); r < 0 {
rwmutex.go#L152: r := rw.readerCount.Add(-rwmutexMaxReaders) + rwmutexMaxReaders
rwmutex.go#L180: if !rw.readerCount.CompareAndSwap(0, -rwmutexMaxReaders) {
rwmutex.go#L209: r := rw.readerCount.Add(rwmutexMaxReaders)
rwmutex.go#L234: r := rw.readerCount.Load()
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)